@extends('admin.inc.base')
@section('content')
    <table class="table">
        <tr>
            <th>序号</th>
            <th>标题</th>
            <th>位置编号</th>
            <th>创建时间</th>
            <th>更新时间</th>
            <th>操作</th>
        </tr>
        @foreach($data as $key => $recommend)
            <tr>
                <td>{{ $key }}</td>
                <td>{{ $recommend -> title }}</td>
                <td>{{ $recommend -> position }}</td>
                <td>{{ $recommend -> created_at }}</td>
                <td>{{ $recommend -> updated_at }}</td>
                <td>
                    <a href="/admin/recommend/{{ $recommend ->id }}/showAppend">查看推荐文章</a>&nbsp;
                    <a href="/admin/recommend/{{ $recommend ->id }}/append">添加推荐文章</a>&nbsp;
                    <a href="/admin/recommend/{{ $recommend ->id }}/edit">编辑</a>&nbsp;
                    <a href="/admin/recommend/{{ $recommend ->id }}/delete">删除</a>
                </td>
            </tr>
        @endforeach
    </table>

@endsection